<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<style rel="stylesheet" type="text/css">
		ul{
			margin-left:18px;
			font-size:13px;
			padding-bottom:12px;
			list-style-type:square;
		}
		li{
			padding-bottom:6px;
		}
		ul li ul{
			margin-left:10px;
			list-style-type:disc;
		}
		a{
			text-decoration:none;
		}
	</style>
</head>
<body>
	<div style="background-color:#FFF;width:100%;" >
		<ul id="ciqMenu">
			<li><a href="direct/helpdoc/help.html" target="main">在线帮助</a></li>
			<li><a href="RecordCodePublish.do" target="main">备案号列表</a></li>

			<security:authorize ifAllGranted="ROLE_ADMIN">
				<li><a href="RecordCodeSearch.do" target="main">备案号管理</a></li>
			    <li><a href="CIQUserSearch.do" target="main">CIQ用户管理</a></li>
			    <li><a href="EntUserSearch.do" target="main">报检企业管理</a></li>
			    <li><a href="UnvalidDeclList.do" target="main">无效单管理</a></li>
			    <li><a href="CcyRateList.do" target="main">汇率管理</a></li>
			    <li><a href="EpidemicNotifySearch.do" target="main">疫情管理</a></li>
			</security:authorize>
			
			<security:authorize ifAllGranted="ROLE_STAT">
				<li style="cursor:n-resize;">统计查询
					<ul style="display:none;">
						<li><a href="StatDecls.do" target="main">按报检单</a></li>
						<li><a href="StatGoods.do" target="main">按货物</a></li>
					</ul>
				</li>
			</security:authorize>
			
			<security:authorize ifAnyGranted="ROLE_MANAGE,ROLE_CLEAR">
				<li style="cursor:n-resize;">非贸易类
					<ul style="display:none;">
						<security:authorize ifAllGranted="ROLE_MANAGE">
							<li><a href="MainDeclSearch.do"  target="main">监管</a></li>
						</security:authorize>
						<security:authorize ifAllGranted="ROLE_CLEAR">
							<li><a href="MainDeclClearSearch.do"  target="main">核销</a></li>
						</security:authorize>
					</ul>
				</li>
			</security:authorize>
			
			<security:authorize ifAllGranted="ROLE_MANAGE">
				<li style="cursor:n-resize;">贸易类
					<ul style="display:none;">
						<li><a href="NormalDeclSearch.do"  target="main">查询</a></li>
					</ul>
				</li>
			</security:authorize>
			
			<security:authorize ifAllGranted="ROLE_MANAGE">
				<li style="cursor:n-resize;"><a href="HandGetDecl.html" target="main">人工取单</a></li>
			</security:authorize>
		</ul>
	</div>
	<script>
		function Each(list, fun){
		    for (var i = 0, len = list.length; i < len; i++){
		    	 fun(list[i], i);
		    }
		};
		Each(document.getElementById("ciqMenu").getElementsByTagName("li"), function(o){
		    o.onclick = function(e){
		        window.event ? window.event.cancelBubble = true : e.stopPropagation() ;
		        var ul = o.getElementsByTagName("ul")[0];
		        if(ul){ ul.style.display = ul.style.display == "none" ? "" : "none"; }
		    }
		})
	</script>
</body>
</html>
